extends /templates/base-flat

block content
  div
    ol.breadcrumb
      li
        a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
      li
        a(href="/editor/ai-junior-scenario", data-i18n="editor.ai_junior_scenario_title")
      li.active
        | #{view.scenario.get('_id')}

  - var authorized = !me.get('anonymous');
  button.ai-junior-scenario-tool-button.btn.btn-primary#i18n-button(data-i18n="editor.pop_i18n", disabled=authorized === true ? undefined : "true")
  button.ai-junior-scenario-tool-button.btn.btn-primary#delete-button(data-i18n="editor.delete", disabled=me.isAdmin() === true ? undefined : "true")
  button.ai-junior-scenario-tool-button.btn.btn-primary#save-button(data-i18n="common.save", disabled=authorized === true ? undefined : "true")

  h3
    span(data-i18n="editor.ai_junior_scenario_edit_title")
    |: #{view.scenario.attributes._id}

  .row
    .col-md-6.col-lg-5.left-col
      #ai-junior-scenario-treema
    .col-md-6.col-lg-7.right-col
      #ai-junior-worksheet

